package com.lxz.aimedicalassistantbackend.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.PostMapping;
import reactor.core.publisher.Flux;

/**
 * @Author: 小新
 * @Date: 2025/5/2 14:49
 * @Description:
 * @Version: v1.0
 */

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT ,
        chatModel = "qwenChatModel",
        streamingChatModel = "qwenStreamingChatModel",
        chatMemoryProvider = "chatMemoryProviderXiaoZhi",
        tools ="appointmentTools",
        contentRetriever = "contentRetrieverXiaozhiPincone"
 )
public interface XiaoZhiAgent {
   @SystemMessage(fromResource = "xiaozhi-prompt-template.txt")
   Flux<String> chat(@MemoryId String memoryId, @UserMessage String message);
}
